import { ComponentInternalInstance, getCurrentInstance } from "vue";

/**
 * 为了在Vue组件中方便地访问全局属性和组件的代理实例
 * @returns 
 */
export default function useWarnConfirm(){
    const {appContext, proxy} = getCurrentInstance() as ComponentInternalInstance;
    const global = appContext.config.globalProperties;
    return {proxy, global};
}